// 定义枚举 0，1，2，3
export const TypeStatus = {
  notProcessed: 0, // 未处置
  processed: 1, // 处置中
  completed: 2, // 已完结
  rejected: 3, // 已驳回
  all: 100
}

export const getStatusType = (Type) => {
  switch (Type) {
    case 0:
      return 'warning'
    case 1:
      return 'primary'
    case 2:
      return 'success'
    case 3:
      return 'warning'
    default:
      return 'warning'
  }
}

export const getStatusTypeColor = (Type) => {
  switch (Type) {
    case 0:
      return 'red'
    case 1:
      return 'blue'
    case 2:
      return 'green'
    case 3:
      return 'orange'
    default:
      return 'gray'
  }
}

export const getStatusTypeDoc = (Type) => {
  switch (Type) {
    case 0:
      return '未处理'
    case 1:
      return '处置中'
    case 2:
      return '办结'
    case 3:
      return '驳回'
    default:
      return '未知'
  }
}

export const getEventTypeDoc = (Type) => {
  switch (Type) {
    case 0:
      return '帮办'
    case 1:
      return '代办'
    default:
      return '未知'
  }
}

export const getEventTypeDocUn = (Type) => {
  switch (Type) {
    case '帮办':
      return 0
    case '代办':
      return 1
    default:
      return '未知'
  }
}

export const getEventType = (Type) => {
  switch (Type) {
    case 0:
      return 'primary'
    case 1:
      return 'success'
    default:
      return 'warning'
  }
}

export const getEventImages = (Images) => {

}
